export default {
	//设置登录基本信息
	SET_LOGIN_INFO(state, { isLogin, userInfo }) {
		state.isLogin = isLogin;
		state.userInfo = userInfo;
	},

	//设置需要缓存的组件
	PUSH_CACHE_COMP(state, { compName }) {
		state.keepAlives.push(compName);
	},

	//清空缓存组件
	CLEAR_CACHE_COMP(state) {
		state.keepAlives = [];
	},
};
